home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98c.txt
/
000067_icon-group-sender _Tue Nov 3 09:09:48 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
2KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) with SMTP id JAA10063
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Tue, 3 Nov 1998 09:09:47 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA14547; Tue, 3 Nov 1998 09:09:10 -0700
Date: Mon, 2 Nov 1998 18:48:09 -0600 (CST)
From: Ray Pereda <rpereda@ringer.cs.utsa.edu>
X-Sender: rpereda@pandora
To: Robert Valliant <valliant@hawaii.edu>
Cc: icon-group@optima.CS.Arizona.EDU
Subject: Re: How to read integers and others
In-Reply-To: <m3r9vlohcm.fsf@cera.shaps.hawaii.edu>
Message-Id: <Pine.GSO.3.95.981102184640.14308A-100000@pandora>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
# Please RTFM, "String Scanning and Pattern Matching" chapter
# in the Icon book, or scanning in one of the many online reference
# documents.
# Also, start by reading http://www.cs.arizona.edu/icon/intro.htm
procedure main()
while line := read() ? {
tab(upto(&letters))
word := tab(many(&letters))
tab(upto(&digits))
num := integer(tab(many(&digits)))
write("number: ", num, " word: ", word)
}
end
-ray
On 2 Nov 1998, Robert Valliant wrote:
> I have an information retrieval program written in "c" that I would
> like to convert to a web application.
>
> The indexing portion of the application generates an inverted file of
> the format:
>
> word 32-bit integer
> word 32-bit integer
> .
> .
> .
> word 32-bit integer
>
> Can anyone tell me the best way to read these things, using icon? Or
> am I wasting my time in trying?
>
> thanks
>
> --
> Robert Valliant
> Center for Russia in Asia
> University of Hawaii at Manoa
> valliant@hawaii.edu Fax: 808.956.2682 Tel: 808.956.7814
>
>
>